[Unit]
Description=Insync-headless %i
PartOf=insync-headless.service
ReloadPropagatedFrom=insync-headless.service

[Service]
Type=simple
ExecStart=/usr/bin/insync-headless start --no-daemon
ExecStop=/usr/bin/insync-headless quit
User=%I
KillMode=mixed
TimeoutStopSec=5
Restart=always
RestartSec=60

[Install]
WantedBy=insync-headless.service
